//
//  TimeLine.swift
//  GOFM
//
//  Created by siri on 2024/10/15.
//  Copyright © 2024 Glad. All rights reserved.
//  时间轴

import SwiftUI

struct TimeLine: View {
    var body: some View {
        GeometryReader { geometry in
                           Path { path in
                               let w = geometry.size.width
                               let h = geometry.size.height
                
                               path.move(to: CGPoint(x: w / 2.0, y: 0))
                               path.addLine(to: CGPoint(x: w / 2, y: -h-20))
                               path.move(to: CGPoint(x: w / 2.0, y: h))
                               path.addLine(to: CGPoint(x: w / 2.0, y: 55))
                           }
                           .stroke(Color(hex: "#b3b4b8"), lineWidth: 1)
                       }
    }
}

struct TimeLine_Previews: PreviewProvider {
    static var previews: some View {
        TimeLine()
    }
}
